import service from '@/utils/request'

// @Tags ActivityInfo
// @Summary 创建ActivityInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ActivityInfo true "创建ActivityInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /activityInfo/createActivityInfo [post]
export const createActivityInfo = (data) => {
  return service({
    url: '/activityInfo/createActivityInfo',
    method: 'post',
    data
  })
}

// @Tags ActivityInfo
// @Summary 删除ActivityInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ActivityInfo true "删除ActivityInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /activityInfo/deleteActivityInfo [delete]
export const deleteActivityInfo = (data) => {
  return service({
    url: '/activityInfo/deleteActivityInfo',
    method: 'delete',
    data
  })
}

// @Tags ActivityInfo
// @Summary 删除ActivityInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ActivityInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /activityInfo/deleteActivityInfo [delete]
export const deleteActivityInfoByIds = (data) => {
  return service({
    url: '/activityInfo/deleteActivityInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags ActivityInfo
// @Summary 更新ActivityInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ActivityInfo true "更新ActivityInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /activityInfo/updateActivityInfo [put]
export const updateActivityInfo = (data) => {
  return service({
    url: '/activityInfo/updateActivityInfo',
    method: 'put',
    data
  })
}

// @Tags ActivityInfo
// @Summary 用id查询ActivityInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ActivityInfo true "用id查询ActivityInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /activityInfo/findActivityInfo [get]
export const findActivityInfo = (params) => {
  return service({
    url: '/activityInfo/findActivityInfo',
    method: 'get',
    params
  })
}

// @Tags ActivityInfo
// @Summary 分页获取ActivityInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取ActivityInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /activityInfo/getActivityInfoList [get]
export const getActivityInfoList = (params) => {
  return service({
    url: '/activityInfo/getActivityInfoList',
    method: 'get',
    params
  })
}
